#ifndef __SERIAL_H__
#define __SERIAL_H__

#include"stc15.h"
#include"bsp_timer.h"
#define BAUD 9600
#define	Timer2_Reload	(65536UL -(FOSC / 4 / BAUD))		//Timer 2 重装值， 对应300KHZ
#define DATA_length 50
void Uart1_Init(void);
void Put_uart(uint8_t *pStr);
void uart_send();
void esp8266_send(uint8_t *pStr);
extern uint8_t xdata RX1_Buffer[DATA_length];
extern uint8_t RX1_write,RX1_read;
extern bit uart_flag;
#endif